require "json"

package = JSON.parse(File.read(File.join(__dir__, "package.json")))

Pod::Spec.new do |s|
  s.name         = "react-native-systempermissions"
  s.version      = package["version"]
  s.summary      = package["description"]
  s.author       = 'crazycodeboy'
  s.homepage     = package["homepage"]
  s.license      = package["license"]
  s.platform     = :ios, "7.0"
  s.source       = { :git => "https://gitee.com/duantianqi/react-native-systempermissions.git", :tag => "v#{s.version}" }
  s.source_files = "ios/YuanXinSystemPermissions/*.{h,m}"

  s.subspec 'Permissions' do |ss|
    ss.dependency 'React'
    ss.source_files = 'ios/YuanXinSystemPermissions/Permissions/*.{h,m}' 
  end 
end
